// 导入mongoose
const mongoose = require("mongoose");

// 创建文档结构
const movieSchema = new mongoose.Schema({
  title: String,
  director: String,
});

// 创建模型对象
const moviemodel = mongoose.model("movie", movieSchema);

// 暴露模型对象
module.exports = moviemodel;
